package com.bsb.biz.shiro;

import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

public class PasswordUtil {
	public static String genPwd(String pwd, String salt) {
		String password = new SimpleHash("md5", pwd, ByteSource.Util.bytes(salt), 2).toHex();
		return password;
	}
	public static void main(String[] args) {
		System.out.println(genPwd("1", "test5230b29ee1c5442154461106f406e342"));
	}
}
